package com.iwop.moto.service.impl;

import com.iwop.moto.dao.FPartnerStoreMapper;
import com.iwop.moto.model.FPartnerStore;
import com.iwop.moto.service.FPartnerStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author czq
 * @version 1.0
 * @created 2017/5/2 0002.
 */
@Service
public class FPartnerStoreServiceImpl implements FPartnerStoreService {
    @Autowired
    FPartnerStoreMapper partnerStoreMapper;

    @Override
    public FPartnerStore searchById(String store_user_id) {
        FPartnerStore fPartnerStore = new FPartnerStore();
        try {
            fPartnerStore = partnerStoreMapper.selectByPrimaryKey(store_user_id);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return fPartnerStore;
    }

    @Override
    public List<FPartnerStore> findAll() {
        return partnerStoreMapper.findAll();
    }
}
